﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Database.Models
{
    [Table("Role")]
    public class Role : BaseModel
    {
        public Role()
        {
            Users = new HashSet<User>();
        }

        public int Id { get; set; }

        [Required]
        [MaxLength(255)]
        public string RoleName { get; set; }

        //public DateTime Created { get; set; }

        //public User CreatedBy { get; set; }

        //public DateTime Modified { get; set; }

        //public User ModifiedBy { get; set; }

        public virtual ICollection<User> Users { get; set; }
    }
}